package com.chis.ms;

import org.springframework.beans.BeanUtils;

import java.io.*;
import java.util.*;

public class TestXml {

    public static void main(String[] args) {

        File file1 = new File("C:\\Users\\wlj\\Desktop\\202105003\\RelationFile_9211443_202105003.xml");
        FileReader m = null;
        try {
            m = new FileReader(file1);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        BufferedReader reader = new BufferedReader(m);

        while (true) {
            String nextline = null;
            try {
                nextline = reader.readLine();
                if (nextline != null && nextline.length() > 1) {
//                    System.out.println(nextline);

                    String tmp = nextline.trim();

                    if (!tmp.startsWith("<Code curCode=\"81")) {
                        System.out.println(nextline);
                        System.out.println("==========");
                    }



                }
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (nextline == null) break;
        }
    }
}
